package com.loong.system.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SystemConfigKeyParam {
    @NotNull(groups = {CommonUpdate.class},message = "id不能为空")
    private Long id;
    /**
     * 位置id
     */
    @NotNull(message = "新增、更新key时位置positionId不能为空",groups = {CommonInsert.class})
    private Long positionId;

    /**
     * key名称
     */
    @NotBlank(message = "新增、更新时key名称不能为空",groups = {CommonInsert.class})
    private String keyName;

    /**
     * key编码
     */
    @NotNull(message = "新增、更新时key编码不能为空",groups = {CommonInsert.class})
    private String keyCode;
}
